<!-- 设置(安全，新消息通知，隐私，通用，关于) -->
<template>
  <div id="Install">
    <Head BackType1="1" title="设置"></Head>
    <div id="InstallMain">
      <div class="InstallBox BoxActive" v-for="(Title,index) in Titles" :key="index" @click="GotoDetails(index)">
        <div class="InstallBoxList">
          <div class="InstallTitle">{{Title}}</div>
          <img src="@/assets/img/ArrowRight.png" alt="">
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  import Head from "../components/Head"
  name:"Install"
  export default {
    data(){
      return{
        Titles:['安全','隐私','通用','关于']
      }
    },
    components:{
      Head,
    },
    methods:{
      GotoDetails(index){
        console.log(index)
        if(index == 0){
          this.$router.push('/Security')
        }else if(index == 1){
          this.$router.push('/Privacy')
        }else if(index == 2){
          this.$router.push('/General')
        }else{
          // this.$router.push('/General')
        }
      }
    }
  }
</script>

<style scoped lang="less">
#Install{
  font-size: 32px;
  #InstallMain{
    width: 750px;
    position: fixed;
    top: 88px;
    overflow: scroll;
    .InstallBox{
      height: 91px;
      padding-left: 30px;
      background: #fff;
      &:first-child {
        margin-top: 10px;
        margin-bottom: 20px;
        .InstallBoxList{
          border-bottom: 0;

        }
      }
      &:nth-child(4) .InstallBoxList{
        border-bottom: 0;
      }
      &:last-child .InstallBoxList{
        border-bottom: 0;
        margin-top: 20px;
      }
      .InstallBoxList{
        border-bottom: 1px solid #e8e8e8;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        height: 90px;
        .InstallTitle{

        }
        img{
          width: 14px;
          height: 22px;
          margin-right: 30px;
        }
      }
      
    }
  }
}
</style>